package com.woniuxy.microsysserver.service;

import com.woniuxy.bean.CertificationEntity;
import com.woniuxy.bean.MemberEntity;
import com.woniuxy.microsysserver.entity.CouponEntity;

public interface MemberService {
   //根据账号查询
    MemberEntity selectByAccount(String username);
    //注册
    int register(MemberEntity memberEntity);
    //更新任意可改字段
    int updateByName(MemberEntity memberEntity);
    //余额支付
    String balancePayment(String username, double money);
    //实名认证
    int certification(CertificationEntity certification,String payPassword);
    //查询优惠劵
    CouponEntity selectCouponById(int id);

    int userCoupon(int couponId);

    int updatepsw(MemberEntity memberEntity);


    String balancePaymentByBank(String memberName, Double money,int bankCardId);

    int signIn(MemberEntity currentMemberEntity);

 void signOut(String username);

}
